import sys

def unix2dos(fname):
    dst_fname = fname+'.txt'
    with open(fname, 'r') as fr:
        with open(dst_fname, 'w') as fw:
            for line in fr:
                line = line.rstrip() + '\r\n'
                fw.write(line)

if __name__ == '__main__':
    unix2dos(sys.argv[1])